package com.springcloud.alibaba.service.imp;

import com.google.j2objc.annotations.AutoreleasePool;
import com.springcloud.alibaba.dao.AccountDao;
import com.springcloud.alibaba.service.AccountService;
import com.springcloud.configclient.commons.entities.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountDao dao;

    @Override
    public int decreseAccount(long userId, BigDecimal money) {

        return dao.decreseAccount(userId,money);
    }
}
